package com.woniuxy.intellihome.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author ganrun
 * @since 2021-08-16 :
 * 1、修正了time相关属性对象类型，由LocalDateTime 订正为 String；
 * 2、为对象添加Lombok注解
 * 3、添加Table注解与数据库字段进行匹配
 */
@Data
@Getter
@Setter
@ToString
@TableName("v_credit")
@EqualsAndHashCode(callSuper = false)
public class VCredit implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private String time;

    private String source;

    @TableField("change_num")
    private Integer changeNum;

    @TableField("rest_num")
    private Integer restNum;

    @TableField("user_id")
    private Integer userId;

    private String description;

    private Integer score;

    @TableField("order_num")
    private String orderNum;

    @TableField("order_time")
    private String orderTime;

    private BigDecimal prices;


}
